<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="经营指标报表">
            <div class="row wrapper-y-sm">
                <div class="search-bar p-t-sm col-xs-4">
                    <label class="control-label pull-left">报表类型：</label>
                    <div class="border-none form-radio pull-left">
                        <input type="radio" class="m-r-md pull-left" yb-radio ng-model="condition.reportType" value="1"
                            yb-radio-name="总表">
                        <input type="radio" class="m-r-md pull-left" yb-radio ng-model="condition.reportType" value="2"
                            yb-radio-name="分表">
                    </div>
                </div>

                <div class="wrapper-none col-xs-8 search-bar-data-picker" style="float: left;" >
                    <div class="normal-search clearfix">
                        <!-- xbt-->
                        <label class="control-label" style="">主机厂筛选：</label>
                        <select class="form-control m-r-sm" style="width:197px;" ng-model="condition.orgId"
                            ng-options="plant.orgId as plant.companyName for plant in companyList" ng-change="search(1)">
                        </select>
                        <!-- xbt -->
                        <label class="control-label" style="">开始时间：</label>
                        <input type="text" class="form-control date-picker m-r-sm" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                            is-open="datePickerFlag[0]" close-text="关闭" modal-size="small" readonly>
                        <label class="control-label">结束时间：</label>
                        <input type="text" class="form-control date-picker m-r-sm" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                            is-open="datePickerFlag[1]" close-text="关闭" modal-size="small" readonly>
                        <span class="btn btn-primary searchBtn " ng-click="search(1)"
                        style="float:right">搜索</span>
                    </div>
                </div>
            </div>
            <div class="main-area">
                <div class="table-data">
                    <table class="table table-bordered text-center">
                        <tr>
                            <td colspan="1" class="vertical-align-middle td-title">指标类型</td>
                            <td colspan="2" class="vertical-align-middle td-title">指标分解</td>
                            <td colspan="3" class="vertical-align-middle td-title">销售额</td>
                        </tr>
                        <tr>
                            <td rowspan="3" colspan="1" class="vertical-align-middle td-title">总计</td>
                            <td colspan="2" class="vertical-align-middle td-title">总销售额（订单）</td>
                            <td colspan="3" class="vertical-align-middle td-body">{{dataList.totalVO.totalOrderPrice}}
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="vertical-align-middle td-title">总出库金额（已出库）</td>
                            <td colspan="3" class="vertical-align-middle td-body">{{dataList.totalVO.totalOutPrice}}
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="vertical-align-middle td-title">总出库金额（已开票）</td>
                            <td colspan="3" class="vertical-align-middle td-body">{{dataList.totalVO.totalTicketPrice}}
                            </td>
                        </tr>
                        <tr>
                            <td colspan="1" rowspan="17" class="td-title">收入指标</td>
                            <td colspan="1" rowspan="{{3+dataList.dealerClassVO.length}}" class="td-title">渠道结构</td>
                            <td colspan="1" class="td-title">三包调拨单总金额</td>
                            <td colspan="3" class="td-body">{{dataList.totalVO.totalThreePurPrice}}</td>
                        </tr>
                        <tr>
                            <td colspan="1" class="td-title">三包调拨单金额（已出库）</td>
                            <td colspan="3" class="td-body">{{dataList.totalVO.totalThreeOutPrice}}</td>
                        </tr>
                        <tr>
                            <td colspan="1" class="td-title">客户分类</td>
                            <td colspan="1" class="td-title">订单总金额</td>
                            <td colspan="1" class="td-title">已出库金额</td>
                            <td colspan="1" class="td-title">已开票金额</td>
                        </tr>
                        <tr ng-repeat="item in dataList.dealerClassVO track by $index">
                            <td colspan="1" class="td-body">{{item.dealerClass}}</td>
                            <td colspan="1" class="td-body">{{item.dcOrderPrice}}</td>
                            <td colspan="1" class="td-body">{{item.dcOutPrice}}</td>
                            <td colspan="1" class="td-body">{{item.dcTicketPrice}}</td>
                        </tr>
                        <tr>
                            <td colspan="1" rowspan="{{1+dataList.materialTypeVO.length}}" class="td-title">产品结构</td>
                            <td colspan="1" class="td-title">物料分类</td>
                            <td colspan="1" class="td-title">类别总金额</td>
                            <td colspan="1" class="td-title">已出库金额</td>
                            <td colspan="1" class="td-title">已开票金额</td>
                        </tr>
                        <tr ng-repeat="item in dataList.materialTypeVO track by $index">
                            <td class="td-body">{{item.materialsType}}</td>
                            <td class="td-body">{{item.mcOrderPrice}}</td>
                            <td class="td-body">{{item.mcOutPrice}}</td>
                            <td class="td-body">{{item.mcTicketPrice}}</td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>